Add placer to navicache.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 6 Jun 2011 23:24:43 +0000 (23:24 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 6 Jun 2011 23:24:43 +0000 (23:24 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4067 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/navicache.c

index 5e416e79851bd011228fe0ea2f76ffee8175031f..3c4ea7ce133dc3bff98d4febdf74a09e2e609470 100644 (file)
@@ -127,6 +127,9 @@ nav_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr)
                        if (0 == strcmp(ap[0], "name")) {
                                wpt_tmp->description = xstrdup(ap[1]);
                        } else
+                       if (0 == strcmp(ap[0], "user_name")) {
+                               gc_data->placer = xstrdup(ap[1]);
+                       } else
                        if (0 == strcmp(ap[0], "latitude")) {
                                sscanf(ap[1], "%lf", 
                                &wpt_tmp->latitude);